package com.fbw.ssm.service.impl;


import com.fbw.ssm.dao.UserMapper;
import com.fbw.ssm.pojo.User;
import com.fbw.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public void save(User user) throws IOException {

        userMapper.save(user);
    }

    public List<User> findAll() {
        return userMapper.findAll();
    }

    public User findById(int id) {
        return null;
    }
}
